package com.j2eefast.bussiness.contract.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>计件工资</p>
 *
 * @author: summer
 * @date: 2021-06-09 10:41
 * @web: http://www.letukeji.cn
 * @version: 1.0.1
 */
@Data
@TableName("pay_piece")
public class PayPieceEntity implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @ExcelIgnore
    protected Long id;


    //账套id
    @TableField(value = "pay_id")
    @ExcelIgnore
    protected String payId;
    //日期
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    @TableField(value = "timing_data")
    @ExcelProperty(value = "日期",index = 12)
    protected Date timingData;
    //生产单号
    @TableField(value = "production_number")
    @ExcelProperty(value = "生产单号",index = 0)
    protected String productionNumber;
//    //账套名称
//    @TableField(value = "init_value")
//    protected String initValue;
    //部门
    @TableField(value = "department")
    @ExcelProperty(value = "部门",index = 1)
    protected String department;
    //员工姓名
    @TableField(value = "name")
    @ExcelProperty(value = "员工姓名",index = 2)
    protected String name;
    //产品编号
    @TableField(value = "product_code")
    @ExcelProperty(value = "产品编号",index = 3)
    protected String productCode;
    //产品名称
    @TableField(value = "product_name")
    @ExcelProperty(value = "产品名称",index = 4)
    protected String productName;
    //单位
    @TableField(value = "unit")
    @ExcelProperty(value = "单位",index = 5)
    protected String unit;
    //工序编号
    @TableField(value = " process_code")
    @ExcelProperty(value = "工序编号",index = 6)
    protected String  processCode;

    //工序名称
    @TableField(value = " process_name")
    @ExcelProperty(value = "工序名称",index = 7)
    protected String  processName;
    //工序单价
    @TableField(value = " process_price")
    @ExcelProperty(value = "工序单价",index = 8)
    protected BigDecimal processPrice;
    //数量
    @TableField(value = " order_num")
    @ExcelProperty(value = "数量",index = 9)
    protected int orderNum;
    //金额
    @TableField(value = " amount")
    @ExcelProperty(value = "金额",index = 11)
    protected BigDecimal amount;
    //完成数量
    @TableField(value = " completed_quantity")
    @ExcelProperty(value = "完成数量",index = 10)
    protected String  completedQuantity;

    //备注
    @TableField(value = "remark")
    @ExcelProperty(value = "备注",index = 13)
    protected String remark;
    //创建日期
    @TableField(value = "create_time")
    @ExcelProperty(value = "创建日期",index = 14)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    protected Date createTime;
    //更新日期
    @TableField(value = "update_time")
    @ExcelProperty(value = "更新日期",index = 15)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    protected Date updateTime;
    //创建人
    @TableField(value = "create_by")
    @ExcelProperty(value = "创建人",index = 16)
    protected String createBy;
    //更新人
    @TableField(value = "update_by")
    @ExcelProperty(value = "更新人",index =17)
    protected String updateBy;

    @Override
    public String toString() {
        return super.toString();
    }
}
